'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: upload_file_service.py
* @Time: 2025/11/12
* @All Rights Reserve By Brtc
'''
from dataclasses import dataclass
from injector import inject

from internal.model import UploadFile
from .base_service import BaseService
from pkg.sqlalchemy import SQLAlchemy


@inject
@dataclass
class UploadFileService(BaseService):
    """文件上传记录服务"""
    db:SQLAlchemy

    def create_upload_file(self, **kwargs)->UploadFile:
        """创建文件上传记录"""
        return self.create(UploadFile, **kwargs)